package com.hxzy.service.impl;

import com.hxzy.bean.HotFilm;
import com.hxzy.dao.HotFilmDao;
import com.hxzy.dao.impl.HotFilmDaoImpl;
import com.hxzy.service.HotFilmService;

import java.util.List;

/**
 * @author nick
 * @description
 * @date create in 2020/9/14
 */
public class HotFilmServiceImpl implements HotFilmService {

    //业务逻辑层中调用数据访问层，因此需要得到数据访问层的对象
    private HotFilmDao dao = new HotFilmDaoImpl();

    @Override
    public int save(HotFilm hotFilm) {
        return dao.save(hotFilm);
    }

    @Override
    public int update(HotFilm hotFilm) {
        return dao.update(hotFilm);
    }

    @Override
    public int remove(Integer integer) {
        return dao.remove(integer);
    }

    @Override
    public List<HotFilm> queryAll() {
        return dao.queryAll();
    }

    @Override
    public HotFilm findById(Integer integer) {
        return dao.findById(integer);
    }

    @Override
    public List<HotFilm> queryHotFilms() {
        return null;
    }
}
